home *** CD-ROM | disk | FTP | other *** search
- package Forms
- {
- import flash.events.Event;
- import flash.events.MouseEvent;
- import flash.net.URLRequest;
- import flash.net.navigateToURL;
- import flash.utils.Timer;
-
- [Embed(source="/_assets/assets.swf", symbol="Forms.UpsellBeatForm")]
- public class UpsellBeatForm extends CluelessBaseForm
- {
-
-
- protected var _iSnapshotCountdown:int = 0;
-
- public var _bBuyNow:Button;
-
- public var _bDownload:Button;
-
- protected var _timer:Timer;
-
- public var _bPlay:Button;
-
- protected var _dragcontroller:DragController;
-
- public function UpsellBeatForm()
- {
- _dragcontroller = new DragController();
- _iSnapshotCountdown = 0;
- _timer = new Timer(200,0);
- super();
- _bPlay.addEventListener(MouseEvent.CLICK,onPlayAgain,false,0,true);
- _bBuyNow.addEventListener(MouseEvent.CLICK,onBuyNow,false,0,true);
- _bDownload.addEventListener(MouseEvent.CLICK,onDownload,false,0,true);
- }
-
- internal function onBuyNow(param1:Event) : void
- {
- navigateToURL(new URLRequest("http://www.bigfishgames.com/download-games/5049/clueless/index.html"));
- }
-
- internal function onPlayAgain(param1:Event) : void
- {
- setFormPermanent(new TitleForm());
- }
-
- internal function onDownload(param1:Event) : void
- {
- navigateToURL(new URLRequest("http://www.bigfishgames.com/download-games/5049/clueless/download.html"));
- }
-
- internal function onQuit(param1:Event) : void
- {
- MainDocument.forceQuit();
- }
- }
- }
-